﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>hRecipe 2 - multiple occurrence test</title>
  
  <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../testrunner/css/testrunner.css" type="text/css" />
  
  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/operator/content/Microformats/Microformats.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
     
</head>
<body>
    
    
    <div class="test-fixture">
    
    <p>
    <a href="../"><img border="0" id="testsuite-image" alt="Microformats test suite" src="../images/testsuite.gif" /></a><br />
    </p>
    
    <h1 class="summary">hRecipe 2 - multiple occurrence test</h1>
    <p class="description">This page was design to test that values of a hRecipe which are meant to have multiple occurrences are parsed correctly.</p>
    <p>From: <a href="default.htm"><span class="format">hRecipe</span> test suite 1.0</a></p>
    <p class="author vcard">
        Author: <a class="url fn" href="http://www.glennjones.net/">Glenn Jones</a> 
    </p>
    
    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>Test</th>
            <th>Result</th>
            <th>Comment</th>
        </tr>
    </thead>
    <tbody>        
        
        <tr class="assert">
            <td class="test">hrecipe[0].author[1]</td>
            <td class="result">IsEqualTo("Jane Doe")</td>
            <td class="comment">The author is a multiple value</td>
        </tr>
        
        <tr class="assert">
            <td class="test">hrecipe[0].ingredient[1]</td>
            <td class="result">IsEqualTo("1 egg")</td>
            <td class="comment">The ingredient is a multiple value</td>
        </tr>
       
        <tr class="assert">
            <td class="test">hrecipe[0].duration[1]</td>
            <td class="result">IsEqualTo("PT30M")</td>
            <td class="comment">The duration is a multiple value</td>
        </tr>
        
        <tr class="assert">
            <td class="test">hrecipe[0].photo[1]</td>
            <td class="result">IsEqualTo("http://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Traditional.Sunday.Roast-01.jpg/280px-Traditional.Sunday.Roast-01.jpg")</td>
            <td class="comment">The duration is a multiple value</td>
        </tr>
        
        <tr class="assert">
            <td class="test">hrecipe[0].nutrition[1]</td>
            <td class="result">IsEqualTo("Fat: 2.5g")</td>
            <td class="comment">The nutrition is a multiple value</td>
        </tr>
        
        
        <tr class="assert">
            <td class="test">hrecipe[0].tag[1].tag</td>
            <td class="result">IsEqualTo("english")</td>
            <td class="comment">The tag is a multiple value</td>
        </tr>


        



     </tbody>
    </table> 
    
    
    <p>History:</p>
    <ul>
    <li class="history vevent">
        <span class="summary">Created</span>: <abbr class="dtstart" title="2011-08-13">13 Aug 2011</abbr> 
        <span class="description">by Glenn Jones</span>
    </li>
    </ul>
    
    
    
    </div>
  
    <div id="uf">
    	<!-- This may not be the best semantic use of HTML element -->
    
        <div class="hrecipe">
            <div class="fn">Yorkshire Pudding</div> 
            <div class="summary">Great with beef</div>
            <div>By: <span class="author">Glenn Jones</span> and <span class="author">Jane Doe</span></div>
            <ul>
            	<li class="ingredient">3 oz (75 g) plain flour</li>
            	<li class="ingredient">1 egg</li>
            	<li class="ingredient">3 fl oz (75 ml) milk</li>
            	<li class="ingredient">2 fl oz (55 ml) water</li>
            	<li class="ingredient">2 tablespoons dripping or oil</li>
            	<li class="ingredient">Salt and pepper</li>
            </ul>
            <div class="yield">Makes 6 to 8 puddings</div>
           	<div class="instructions">Make the batter by mixing everthing in a bowl</div>
           
			<div>Takes: <span class="duration"><span class="value-title" title="PT20M"></span>20</span> to
			<span class="duration"><span class="value-title" title="PT30M"></span>30</span> mins
			</div>
			
			<img class="photo" src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f9/Yorkshire_Pudding.jpg/280px-Yorkshire_Pudding.jpg" />
            <img class="photo" src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1e/Traditional.Sunday.Roast-01.jpg/280px-Traditional.Sunday.Roast-01.jpg" />
            
            <ul>
            	<li><a rel="tag" href="http://en.wikipedia.org/wiki/yorkshire">yorkshire</a></li>
            	<li><a rel="tag" href="http://en.wikipedia.org/wiki/english">english</a></li>            
            </ul>
            
            <div>Amount Per Serving</div>
            <ul>
            	<li class="nutrition">Calories: 91</li>
            	<li class="nutrition">Fat: 2.5g</li>            
            </ul>

            
            
            <div>Published <span class="published"><span class="value-title" title="2008-08-13"> </span>13 Aug 2011</span></div>

        </div>
        
    </div>
    
    <p>
        <a rel="license" href="../license.txt">Some rights reserved</a>
    </p>
      
</body>

</html>